﻿@model IEnumerable<EventPlanner.Models.Organizador>

@{
    ViewBag.Title = "Mis Organizadores";
}
 <div class="subtitle">
<h2>@EventPlanner.Resources.Global.Global.lbl_MisOrganizadores</h2>
</div>
<p></p>

@Html.Partial("_Busqueda_Org")
<div class="buttonLink">
<p>
    @Html.ActionLink(@EventPlanner.Resources.Global.Global.lbl_CrearOrganizador, "Create")
</p>
</div>

<p></p>
<table>
    <tr>
        <th>
          @Html.ActionLink(@EventPlanner.Resources.Global.Global.lbl_Nombre, "Index", new { sortOrder = ViewBag.NameSortParm }) @Html.Raw((string)ViewBag.NameAddOn)
            
        </th>
               
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Nombre)
        </td>
       
      
        <td>
        @if (item.Activa)
        {
            @Html.ActionLink(@EventPlanner.Resources.Global.Global.lbl_Editar, "Edit", new { id = item.id }) @Html.Raw("|");            
            @Html.ActionLink(@EventPlanner.Resources.Global.Global.lbl_Borrar, "Delete", new { id = item.id })
        }
        else
        {
             @Html.Raw(@EventPlanner.Resources.Organizador.Index.lbl_OrgBorrado);
        }
        
        </td>
    </tr>
}

</table>
<p></p>

@Html.Partial("_Navegacion_Org",Model)